package com.edgclub.edg.api.param.commom;


import android.text.TextUtils;

import com.edgclub.edg.http.param.Params;
import com.edgclub.edg.utils.util.CryptUtil;

import java.util.TreeMap;

/**
 * 反馈
 *
 * @author 陈坤彬
 *
 */
public class FeedBackParam extends Params {

	private String userId;
	private String content;

	@Override
	public TreeMap<String, String> getParams() {
		params = simpleParams();
		if (null != userId && !TextUtils.isEmpty(userId)) {
			params.put("userId", userId);
		}
		if (null != content && !TextUtils.isEmpty(content)) {
			params.put("content", content);
		}
		params.put("sign", CryptUtil.md5(convertParam()));
		return params;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}
